package cheme.ProcessEditor.Figures.Util;

import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.geometry.Insets;

import cheme.ProcessEditor.ChemePresentation;

public class TitleFig extends Label
{
	public TitleFig(String text)
	{
		super(text);
		
		initPresentation();			
	}
	
	protected void initPresentation()
	{
		setOpaque(true);
		
		setBackgroundColor(ChemePresentation.TableEditors.Equations.Title.background);
		setForegroundColor(ChemePresentation.TableEditors.Equations.Title.foreground);
		setBorder(ChemePresentation.TableEditors.Equations.Title.border);
	}
	
	@Override
	public Insets getInsets()
	{
		return new Insets(3,4,3,4);
	}
}